package cn.dac;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class FilterApplication /*implements ServletContextInitializer*/{

    public static void main(String[] args){
        SpringApplication.run(FilterApplication.class,args);
    }

    /*@Override
    public void onStartup(ServletContext servletContext) throws ServletException {
         // 配置过滤器
        servletContext.addFilter("timeFilter",new TimeFilter())
                .addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST),true,"/*");
    }*/
}
